home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
scale.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
16KB
|
330 lines
ssssccccaaaalllleeee((((nnnn)))) TTTTkkkk (((( )))) ssssccccaaaalllleeee((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
scale - Create and manipulate scale widgets
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ssssccccaaaalllleeee _p_a_t_h_N_a_m_e ?_o_p_t_i_o_n_s?
SSSSTTTTAAAANNNNDDDDAAAARRRRDDDD OOOOPPPPTTTTIIIIOOOONNNNSSSS
aaaaccccttttiiiivvvveeeeFFFFoooorrrreeeeggggrrrroooouuuunnnndddd bbbboooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh ffffoooonnnnttttoooorrrriiiieeeennnntttt |
bbbbaaaacccckkkkggggrrrroooouuuunnnndddd ccccuuuurrrrssssoooorrrr ffffoooorrrreeeeggggrrrroooouuuunnnndddd rrrreeeelllliiiieeeeffff |
See the ``options'' manual entry for details on the standard
options.
WWWWIIIIDDDDGGGGEEEETTTT----SSSSPPPPEEEECCCCIIIIFFFFIIIICCCC OOOOPPPPTTTTIIIIOOOONNNNSSSS
Name: ccccoooommmmmmmmaaaannnndddd
Class: CCCCoooommmmmmmmaaaannnndddd
Command-Line Switch:----ccccoooommmmmmmmaaaannnndddd
Specifies the prefix of a Tcl command to invoke
whenever the value of the scale is changed
interactively. The actual command consists of this
option followed by a space and a number. The number
indicates the new value of the scale.
Name: ffffrrrroooommmm
Class: FFFFrrrroooommmm
Command-Line Switch:----ffffrrrroooommmm
Specifies the value corresponding to the left or top
end of the scale. Must be an integer.
Name: llllaaaabbbbeeeellll
Class: LLLLaaaabbbbeeeellll
Command-Line Switch:----llllaaaabbbbeeeellll
Specifies a string to displayed as a label for the
scale. For vertical scales the label is displayed just
to the right of the top end of the scale. For
horizontal scales the label is displayed just above the
left end of the scale.
Name: lllleeeennnnggggtttthhhh
Class: LLLLeeeennnnggggtttthhhh
Command-Line Switch:----lllleeeennnnggggtttthhhh
Specifies the desired long dimension of the scale in |
screen units (i.e. any of the forms acceptable to |
TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss). For vertical scales this is the scale's
height; for horizontal scales it is the scale's width.
Page 1 (printed 7/23/95)
ssssccccaaaalllleeee((((nnnn)))) TTTTkkkk (((( )))) ssssccccaaaalllleeee((((nnnn))))
Name: sssshhhhoooowwwwVVVVaaaalllluuuueeee
Class: SSSShhhhoooowwwwVVVVaaaalllluuuueeee
Command-Line Switch:----sssshhhhoooowwwwvvvvaaaalllluuuueeee
Specifies a boolean value indicating whether or not the
current value of the scale is to be displayed.
Name: sssslllliiiiddddeeeerrrrFFFFoooorrrreeeeggggrrrroooouuuunnnndddd
Class: sssslllliiiiddddeeeerrrrFFFFoooorrrreeeeggggrrrroooouuuunnnndddd
Command-Line Switch:----sssslllliiiiddddeeeerrrrffffoooorrrreeeeggggrrrroooouuuunnnndddd
Specifies the color to use for drawing the slider under
normal conditions. When the mouse is in the slider
window then the slider's color is determined by the
aaaaccccttttiiiivvvveeeeFFFFoooorrrreeeeggggrrrroooouuuunnnndddd option.
Name: sssslllliiiiddddeeeerrrrLLLLeeeennnnggggtttthhhh
Class: SSSSlllliiiiddddeeeerrrrLLLLeeeennnnggggtttthhhh
Command-Line Switch:----sssslllliiiiddddeeeerrrrlllleeeennnnggggtttthhhh
Specfies the size of the slider, measured in screen |
units along the slider's long dimension. The value may |
be specified in any of the forms acceptable to |
TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss. |
Name: ssssttttaaaatttteeee |
Class: SSSSttttaaaatttteeee |
Command-Line Switch:----ssssttttaaaatttteeee |
||
Specifies one of two states for the scale: nnnnoooorrrrmmmmaaaallll or |
ddddiiiissssaaaabbbblllleeeedddd. If the scale is disabled then the value may |
not be changed and the scale won't activate when the |
mouse enters it.
Name: ttttiiiicccckkkkIIIInnnntttteeeerrrrvvvvaaaallll
Class: TTTTiiiicccckkkkIIIInnnntttteeeerrrrvvvvaaaallll
Command-Line Switch:----ttttiiiicccckkkkiiiinnnntttteeeerrrrvvvvaaaallll
Must be an integer value. Determines the spacing
between numerical tick-marks displayed below or to the
left of the slider. If specified as 0, then no tick-
marks will be displayed.
Name: ttttoooo
Class: TTTToooo
Command-Line Switch:----ttttoooo
Specifies the value corresponding to the right or
bottom end of the scale. Must be an integer. This
value may be either less than or greater than the ffffrrrroooommmm
option.
Page 2 (printed 7/23/95)
ssssccccaaaalllleeee((((nnnn)))) TTTTkkkk (((( )))) ssssccccaaaalllleeee((((nnnn))))
Name: wwwwiiiiddddtttthhhh
Class: WWWWiiiiddddtttthhhh
Command-Line Switch:----wwwwiiiiddddtttthhhh
Specifies the desired narrow dimension of the scale in |
screen units (i.e. any of the forms acceptable to |
TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss). For vertical scales this is the scale's
width; for horizontal scales this is the scale's
height.
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The ssssccccaaaalllleeee command creates a new window (given by the
_p_a_t_h_N_a_m_e argument) and makes it into a scale widget.
Additional options, described above, may be specified on the
command line or in the option database to configure aspects
of the scale such as its colors, orientation, and relief.
The ssssccccaaaalllleeee command returns its _p_a_t_h_N_a_m_e argument. At the
time this command is invoked, there must not exist a window
named _p_a_t_h_N_a_m_e, but _p_a_t_h_N_a_m_e's parent must exist.
A scale is a widget that displays a rectangular region and a
small _s_l_i_d_e_r. The rectangular region corresponds to a range
of integer values (determined by the ffffrrrroooommmm and ttttoooo options),
and the position of the slider selects a particular integer
value. The slider's position (and hence the scale's value)
may be adjusted by clicking or dragging with the mouse as
described in the BINDINGS section below. Whenever the
scale's value is changed, a Tcl command is invoked (using
the ccccoooommmmmmmmaaaannnndddd option) to notify other interested widgets of
the change.
Three annotations may be displayed in a scale widget: a
label appearing at the top-left of the widget (top-right for
vertical scales), a number displayed just underneath the
slider (just to the left of the slider for vertical scales),
and a collection of numerical tick-marks just underneath the
current value (just to the left of the current value for
vertical scales). Each of these three annotations may be
selectively enabled or disabled using the configuration
options.
WWWWIIIIDDDDGGGGEEEETTTT CCCCOOOOMMMMMMMMAAAANNNNDDDD
The ssssccccaaaalllleeee command creates a new Tcl command whose name is
_p_a_t_h_N_a_m_e. This command may be used to invoke various
operations on the widget. It has the following general
form:
_p_a_t_h_N_a_m_e _o_p_t_i_o_n ?_a_r_g _a_r_g ...?
_O_p_t_i_o_n and the _a_r_gs determine the exact behavior of the
Page 3 (printed 7/23/95)
ssssccccaaaalllleeee((((nnnn)))) TTTTkkkk (((( )))) ssssccccaaaalllleeee((((nnnn))))
command. The following commands are possible for scale
widgets:
_p_a_t_h_N_a_m_e ccccoooonnnnffffiiiigggguuuurrrreeee ?_o_p_t_i_o_n? ?_v_a_l_u_e _o_p_t_i_o_n _v_a_l_u_e ...?
Query or modify the configuration options of the
widget. If no _o_p_t_i_o_n is specified, returns a list
describing all of the available options for _p_a_t_h_N_a_m_e
(see TTTTkkkk____CCCCoooonnnnffffiiiigggguuuurrrreeeeIIIInnnnffffoooo for information on the format of
this list). If _o_p_t_i_o_n is specified with no _v_a_l_u_e, then
the command returns a list describing the one named
option (this list will be identical to the
corresponding sublist of the value returned if no
_o_p_t_i_o_n is specified). If one or more _o_p_t_i_o_n-_v_a_l_u_e
pairs are specified, then the command modifies the
given widget option(s) to have the given value(s); in
this case the command returns an empty string. _O_p_t_i_o_n
may have any of the values accepted by the ssssccccaaaalllleeee
command.
_p_a_t_h_N_a_m_e ggggeeeetttt
Returns a decimal string giving the current value of
the scale.
_p_a_t_h_N_a_m_e sssseeeetttt _v_a_l_u_e
This command is invoked to change the current value of
the scale, and hence the position at which the slider
is displayed. _V_a_l_u_e gives the new value for the scale.
BBBBIIIINNNNDDDDIIIINNNNGGGGSSSS
When a new scale is created, it is given the following
initial behavior by default:
<<<<EEEEnnnntttteeeerrrr>>>> Change the slider display to use
aaaaccccttttiiiivvvveeeeFFFFoooorrrreeeeggggrrrroooouuuunnnndddd instead of
sssslllliiiiddddeeeerrrrFFFFoooorrrreeeeggggrrrroooouuuunnnndddd.
<<<<LLLLeeeeaaaavvvveeee>>>> Reset the slider display to use
sssslllliiiiddddeeeerrrrFFFFoooorrrreeeeggggrrrroooouuuunnnndddd instead of
aaaaccccttttiiiivvvveeeeFFFFoooorrrreeeeggggrrrroooouuuunnnndddd.
<<<<BBBBuuuuttttttttoooonnnnPPPPrrrreeeessssssss----1111>>>> Change the slider display so that the
slider appears sunken rather than
raised. Move the slider (and adjust the
scale's value) to correspond to the
current mouse position.
<<<<BBBBuuuuttttttttoooonnnn1111----MMMMoooottttiiiioooonnnn>>>> Move the slider (and adjust the scale's
value) to correspond to the current
mouse position.
<<<<BBBBuuuuttttttttoooonnnnRRRReeeelllleeeeaaaasssseeee----1111>>>> Reset the slider display so that the
Page 4 (printed 7/23/95)
ssssccccaaaalllleeee((((nnnn)))) TTTTkkkk (((( )))) ssssccccaaaalllleeee((((nnnn))))
slider appears raised again.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
scale, widget
Page 5 (printed 7/23/95)